package com.ansion.extension;

import android.content.Context;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.ansion.log.VLog;

/**
 * Description:
 * <p>
 * Created by ____lamer on 2019-11-11 16:17
 */
public class SafelyLinearLayoutManager extends LinearLayoutManager {

    public SafelyLinearLayoutManager(Context context) {
        super(context);
    }

    public SafelyLinearLayoutManager(Context context, int orientation, boolean reverseLayout) {
        super(context, orientation, reverseLayout);
    }

    @Override
    public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) {
        try {
            super.onLayoutChildren(recycler, state);
        } catch (Exception ignore) {
            VLog.d("SafelyLinearLayoutManager", "onLayoutChildren: " + ignore.getMessage());
        }
    }
}
